package jgl.vajra.management.manager;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;

import androidx.fragment.app.FragmentActivity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import jgl.vajra.management.R;
import jgl.vajra.management.bean.CarDetailsBean;
import jgl.vajra.management.bean.CarMemberBean;
import jgl.vajra.management.bean.HomeCarModelBean;
import jgl.vajra.management.bean.OrderListBean;
import jgl.vajra.management.netty.GrabOrderBean;
import jgl.vajra.management.part.home.activity.CityChoiceActivity;
import jgl.vajra.management.part.home.activity.CityPickerActivity;
import jgl.vajra.management.part.home.activity.HeatChartActivity;
import jgl.vajra.management.part.home.activity.HomeActivity;
import jgl.vajra.management.part.home.activity.ListeningSettingActivity;
import jgl.vajra.management.part.login.activity.JoiningRequirementsActivity;
import jgl.vajra.management.part.login.activity.LoginActivity;
import jgl.vajra.management.part.login.activity.RegisterActivity;
import jgl.vajra.management.part.mine.activity.AccountPageActivity;
import jgl.vajra.management.part.mine.activity.BankCardActivity;
import jgl.vajra.management.part.mine.activity.BankCardEditActivity;
import jgl.vajra.management.part.mine.activity.BillDetailsActivity;
import jgl.vajra.management.part.mine.activity.BusinessCodeActivity;
import jgl.vajra.management.part.mine.activity.CarAddActivity;
import jgl.vajra.management.part.mine.activity.CarDetailsActivity;
import jgl.vajra.management.part.mine.activity.CarDetailsFailActivity;
import jgl.vajra.management.part.mine.activity.CarInformationActivity;
import jgl.vajra.management.part.mine.activity.CarNameActivity;
import jgl.vajra.management.part.mine.activity.ChangePhoneActivity;
import jgl.vajra.management.part.mine.activity.CommissionDetailsActivity;
import jgl.vajra.management.part.mine.activity.CustomerRegistrationActivity;
import jgl.vajra.management.part.mine.activity.CustomerRegistrationSearchActivity;
import jgl.vajra.management.part.mine.activity.EmergencyContactActivity;
import jgl.vajra.management.part.mine.activity.InvitePrizeActivity;
import jgl.vajra.management.part.mine.activity.InviteRuleActivity;
import jgl.vajra.management.part.mine.activity.LegalProvisionsActivity;
import jgl.vajra.management.part.mine.activity.LieEarnActivity;
import jgl.vajra.management.part.mine.activity.MemberApplyActivity;
import jgl.vajra.management.part.mine.activity.MemberCenterActivity;
import jgl.vajra.management.part.mine.activity.MemberPurchaseActivity;
import jgl.vajra.management.part.mine.activity.MemberRulesActivity;
import jgl.vajra.management.part.mine.activity.MyCarActivity;
import jgl.vajra.management.part.mine.activity.MyCarSearchActivity;
import jgl.vajra.management.part.mine.activity.MyTeamActivity;
import jgl.vajra.management.part.mine.activity.MyWalletActivity;
import jgl.vajra.management.part.mine.activity.NameAuthenticationActivity;
import jgl.vajra.management.part.mine.activity.NewsPageActivity;
import jgl.vajra.management.part.mine.activity.NicknamePageActivity;
import jgl.vajra.management.part.mine.activity.PersonalInformationActivity;
import jgl.vajra.management.part.mine.activity.PersonalSignatureActivity;
import jgl.vajra.management.part.mine.activity.SettingPageActivity;
import jgl.vajra.management.part.mine.activity.WalletDetailedActivity;
import jgl.vajra.management.part.mine.activity.WithdrawalPageActivity;
import jgl.vajra.management.part.mine.activity.WithdrawalRecordActivity;
import jgl.vajra.management.part.order.activity.CommentStateActivity;
import jgl.vajra.management.part.order.activity.CustomerReceivingAreaActivity;
import jgl.vajra.management.part.order.activity.GrabDetailsActivity;
import jgl.vajra.management.part.order.activity.MachineGuyActivity;
import jgl.vajra.management.part.order.activity.OrderEvaluateActivity;
import jgl.vajra.management.part.order.activity.ReceivingAreaActivity;
import jgl.vajra.management.part.order.activity.ReceivingSettingActivity;
import jgl.vajra.management.part.order.activity.ReplaceDriverActivity;
import jgl.vajra.management.part.order.activity.SecurityCenterActivity;
import jgl.vajra.management.part.order.activity.SubmitSuccessActivity;
import jgl.vajra.management.part.order.activity.VideoSurveillanceActivity;
import jgl.vajra.management.part.vehicle.activity.CalculateAccountsActivity;
import jgl.vajra.management.part.vehicle.activity.CommonAddressActivity;
import jgl.vajra.management.part.vehicle.activity.ConfirmOrderActivity;
import jgl.vajra.management.part.vehicle.activity.CouponAvailableActivity;
import jgl.vajra.management.part.vehicle.activity.CouponPageActivity;
import jgl.vajra.management.part.vehicle.activity.CumulativeDiscountActivity;
import jgl.vajra.management.part.vehicle.activity.DriverCollectionActivity;
import jgl.vajra.management.part.vehicle.activity.EditAddressActivity;
import jgl.vajra.management.part.vehicle.activity.ImmediatePaymentActivity;
import jgl.vajra.management.part.vehicle.activity.MapPointActivity;
import jgl.vajra.management.part.vehicle.activity.OrderDetailsActivity;
import jgl.vajra.management.part.vehicle.activity.OrderDetailsCompleteActivity;
import jgl.vajra.management.part.vehicle.activity.OrderRemarksActivity;
import jgl.vajra.management.part.vehicle.activity.OrderStatusActivity;
import jgl.vajra.management.part.vehicle.activity.OwnerDetailsActivity;
import jgl.vajra.management.part.vehicle.activity.PeripheralPoiActivity;
import jgl.vajra.management.part.vehicle.activity.PriceCalculatorActivity;
import jgl.vajra.management.part.vehicle.activity.PricingRulesActivity;
import jgl.vajra.management.part.vehicle.activity.VehicleDetailsActivity;
import jgl.vajra.management.part.vehicle.activity.WaitingFeeActivity;
import jgl.vajra.management.part.vehicle.activity.WaitingOrderActivity;
import jgl.vajra.management.part.vehicle.activity.WorkingFieldActivity;
import jgl.vajra.management.widget.BigImagePagerActivity;
import jgl.vajra.management.widget.BitmapImageNetActivity;
import jgl.vajra.management.widget.bean.WebViewInfo;
import jgl.vajra.management.widget.retrofithelper.http.Url;

public class IntentManager {
    public static void toBigImageActivity(FragmentActivity activity, List<String> list, int position, int type) {
        Intent intent = new Intent(activity, BigImagePagerActivity.class);
        intent.putExtra(BigImagePagerActivity.INTENT_IMG_URLS, (Serializable) list);
        intent.putExtra(BigImagePagerActivity.INTENT_POSITION, position);
        intent.putExtra(BigImagePagerActivity.INTENT_IAG_TYPE, type);
        activity.startActivity(intent);

        activity.overridePendingTransition(R.anim.fade_in,
                R.anim.fade_out);

    }

    public static void toBigImageNetActivity(FragmentActivity activity, String path, int position) {
        ArrayList<String> strings = new ArrayList<>();
        strings.add(path);
        toBigImageActivity(activity, strings, position, BigImagePagerActivity.TYPE_NET_IMAGE);
    }

    public static void toBigImageNetActivity(FragmentActivity activity, List<String> path, int position) {

        toBigImageActivity(activity, path, position, BigImagePagerActivity.TYPE_NET_IMAGE);
    }

    public static void toBitmapImageNetActivity(FragmentActivity activity,String bucketName,String fileKey) {
        Intent intent = new Intent(activity, BitmapImageNetActivity.class);
        intent.putExtra("bucketName", bucketName);
        intent.putExtra("fileKey", fileKey);
        activity.startActivity(intent);
    }

    public static void toBigImageFileActivity(FragmentActivity activity, String path, int position) {
        ArrayList<String> strings = new ArrayList<>();
        strings.add(path);
        toBigImageActivity(activity, strings, position, BigImagePagerActivity.TYPE_FILE_IMAGE);
    }

    public static void toBigImageFileActivity(FragmentActivity activity, List<String> path, int position) {

        toBigImageActivity(activity, path, position, BigImagePagerActivity.TYPE_FILE_IMAGE);
    }


    public static void toBaseWebViewActivity(Context activity, String title, String url) {
        WebViewInfo info = new WebViewInfo();
        info.url = url;
        info.title = title;
        toBaseWebViewActivity(activity, info);
    }

    public static void toPDFWebViewActivity(Context activity, String title, String url) {
        WebViewInfo info = new WebViewInfo();
        info.url = Url.BASE_PDF_URL + url;
        info.title = title;
        toBaseWebViewActivity(activity, info);
    }

    public static void toBaseWebViewActivity(Context activity, String url) {
        toBaseWebViewActivity(activity, "", url);
    }

    public static void toBaseWebViewActivity(Context activity, String url, int fromType, String id) {
        WebViewInfo info = new WebViewInfo();
        info.url = url;
        info.title = "";
        info.fromType = fromType;
        info.id = id;
        toBaseWebViewActivity(activity, info);
    }

    public static void toBaseWebViewActivity(Context activity, WebViewInfo info) {

    }


    public static void toStsyemWeb(FragmentActivity activity, String url) {

       /* Uri uri = Uri.parse(url);
        Intent intent = new Intent(Intent.ACTION_VIEW, uri);
        activity.startActivity(intent);*/
        //从其他浏览器打开
        Intent intent = new Intent();
        intent.setAction(Intent.ACTION_VIEW);
        Uri content_url = Uri.parse(url);
        intent.setData(content_url);
        if (intent.resolveActivity(activity.getPackageManager()) != null) {
            activity.startActivity(Intent.createChooser(intent, "请选择浏览器"));
        }
    }

    public static void toLoginHomeActivity(Context context, int fromType) {

    }

    public static void toHomeActivity(Context activity) {
        Intent intent = new Intent(activity, HomeActivity.class);
        activity.startActivity(intent);
    }

    public static void toCityPickerActivity(Context activity) {
        Intent intent = new Intent(activity, CityPickerActivity.class);
        activity.startActivity(intent);
    }

    public static void toLoginActivity(Context activity) {
        Intent intent = new Intent(activity, LoginActivity.class);
        activity.startActivity(intent);
    }


    public static void toCourseDetailsActivity(Context activity, String id) {

    }

    public static void toCourseDetailsActivity(Activity activity, long id) {

    }

    public static void toPublicCourseDetailsActivity(Activity activity, long id) {
        toPLVLCCloudClassLiveActivity(activity, id + "");
    }

    public static void toCourseStudyDetailsActivity(Activity activity, long id) {

    }

    public static void toCourseStudyDetailsActivity(Activity activity, String id) {

    }

    public static void onDownloadToCourseStudyDetailsActivity(Activity activity, String id) {

    }


    public static void toDeepLinkActivity(Context context, Uri data, boolean isNewTask) {
        String pageType = data.getQueryParameter("pageType");

        switch (pageType) {
            case "courseDetails":

                break;
        }


    }


    public static void toPLVLCCloudClassLiveActivity(Context context, String courseId) {

    }


    public static void toMessageCenterActivity(FragmentActivity context) {

    }


    public static void toCityChoiceActivity(FragmentActivity activity, List<String> list) {
        Intent intent = new Intent(activity, CityChoiceActivity.class);
        intent.putExtra("list", (Serializable) list);
        activity.startActivity(intent);
    }

    public static void toVehicleDetailsActivity(FragmentActivity activity, int icon) {
        Intent intent = new Intent(activity, VehicleDetailsActivity.class);
        intent.putExtra("icon", icon);
        activity.startActivity(intent);
    }

    public static void toWorkingFieldActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, WorkingFieldActivity.class);
        activity.startActivity(intent);
    }

    public static void toPriceCalculatorActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, PriceCalculatorActivity.class);
        activity.startActivity(intent);
    }

    public static void toPeripheralPoiActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, PeripheralPoiActivity.class);
        activity.startActivity(intent);
    }

    public static void toCommonAddressActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, CommonAddressActivity.class);
        activity.startActivity(intent);
    }

    public static void toEditAddressActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, EditAddressActivity.class);
        activity.startActivity(intent);
    }

    public static void toMapPointActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, MapPointActivity.class);
        activity.startActivity(intent);
    }

    public static void toOwnerDetailsActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, OwnerDetailsActivity.class);
        activity.startActivity(intent);
    }

    public static void toCalculateAccountsActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, CalculateAccountsActivity.class);
        activity.startActivity(intent);
    }

    public static void toConfirmOrderActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, ConfirmOrderActivity.class);
        activity.startActivity(intent);
    }

    public static void toWaitingOrderActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, WaitingOrderActivity.class);
        activity.startActivity(intent);
    }

    public static void toOrderRemarksActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, OrderRemarksActivity.class);
        activity.startActivity(intent);
    }

    public static void toDriverCollectionActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, DriverCollectionActivity.class);
        activity.startActivity(intent);
    }

    public static void toPricingRulesActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, PricingRulesActivity.class);
        activity.startActivity(intent);
    }

    public static void toCumulativeDiscountActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, CumulativeDiscountActivity.class);
        activity.startActivity(intent);
    }

    public static void toCouponPageActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, CouponPageActivity.class);
        activity.startActivity(intent);
    }

    public static void toCouponAvailableActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, CouponAvailableActivity.class);
        activity.startActivity(intent);
    }

    public static void toOrderStatusActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, OrderStatusActivity.class);
        activity.startActivity(intent);
    }

    public static void toSettingPageActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, SettingPageActivity.class);
        activity.startActivity(intent);
    }

    public static void toLegalProvisionsActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, LegalProvisionsActivity.class);
        activity.startActivity(intent);
    }

    public static void toAccountPageActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, AccountPageActivity.class);
        activity.startActivity(intent);
    }

    public static void toChangePhoneActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, ChangePhoneActivity.class);
        activity.startActivity(intent);
    }

    public static void toPersonalInformationActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, PersonalInformationActivity.class);
        activity.startActivity(intent);
    }

    public static void toNicknamePageActivity(FragmentActivity activity, String nickname) {
        Intent intent = new Intent(activity, NicknamePageActivity.class);
        intent.putExtra("nickname", nickname);
        activity.startActivity(intent);
    }

    public static void toNameAuthenticationActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, NameAuthenticationActivity.class);
        activity.startActivity(intent);
    }

    public static void toEmergencyContactActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, EmergencyContactActivity.class);
        activity.startActivity(intent);
    }

    public static void toLieEarnActivity(FragmentActivity activity, String avatar, String nickname) {
        Intent intent = new Intent(activity, LieEarnActivity.class);
        intent.putExtra("avatar", avatar);
        intent.putExtra("nickname", nickname);
        activity.startActivity(intent);
    }

    public static void toCommissionDetailsActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, CommissionDetailsActivity.class);
        activity.startActivity(intent);
    }

    public static void toWithdrawalRecordActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, WithdrawalRecordActivity.class);
        activity.startActivity(intent);
    }

    public static void toBusinessCodeActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, BusinessCodeActivity.class);
        activity.startActivity(intent);
    }

    public static void toWithdrawalPageActivity(FragmentActivity activity, String balance, int type) {
        Intent intent = new Intent(activity, WithdrawalPageActivity.class);
        intent.putExtra("balance", balance);
        intent.putExtra("type", type);
        activity.startActivity(intent);
    }

    public static void toMyTeamActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, MyTeamActivity.class);
        activity.startActivity(intent);
    }

    public static void toImmediatePaymentActivity(FragmentActivity activity, String amount, String logo) {
        Intent intent = new Intent(activity, ImmediatePaymentActivity.class);
        intent.putExtra("amount", amount);
        intent.putExtra("logo", logo);
        activity.startActivity(intent);
    }

    public static void toWaitingFeeActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, WaitingFeeActivity.class);
        activity.startActivity(intent);
    }

    public static void toSecurityCenterActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, SecurityCenterActivity.class);
        activity.startActivity(intent);
    }

    public static void toVideoSurveillanceActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, VideoSurveillanceActivity.class);
        activity.startActivity(intent);
    }

    public static void toOrderEvaluateActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, OrderEvaluateActivity.class);
        activity.startActivity(intent);
    }

    public static void toCommentStateActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, CommentStateActivity.class);
        activity.startActivity(intent);
    }

    public static void toSubmitSuccessActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, SubmitSuccessActivity.class);
        activity.startActivity(intent);
    }

    public static void toMachineGuyActivity(FragmentActivity activity, String logo) {
        Intent intent = new Intent(activity, MachineGuyActivity.class);
        intent.putExtra("logo", logo);
        activity.startActivity(intent);
    }

    public static void toMachineGuyActivity(FragmentActivity activity, String logo, String driverInvitation, int authorize) {
        Intent intent = new Intent(activity, MachineGuyActivity.class);
        intent.putExtra("logo", logo);
        intent.putExtra("driverInvitation", driverInvitation);
        intent.putExtra("authorize", authorize);
        activity.startActivity(intent);
    }

    public static void toRegisterActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, RegisterActivity.class);
        activity.startActivity(intent);
    }

    public static void toJoiningRequirementsActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, JoiningRequirementsActivity.class);
        activity.startActivity(intent);
    }

    public static void toHeatChartActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, HeatChartActivity.class);
        activity.startActivity(intent);
    }

    public static void toOrderDetailsActivity(FragmentActivity activity, String orderId) {
        Intent intent = new Intent(activity, OrderDetailsActivity.class);
        intent.putExtra("orderId", orderId);
        activity.startActivity(intent);
    }

    public static void toPersonalSignatureActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, PersonalSignatureActivity.class);
        activity.startActivity(intent);
    }

    public static void toMyCarActivity(FragmentActivity activity, int tag, int internal) {
        Intent intent = new Intent(activity, MyCarActivity.class);
        intent.putExtra("tag", tag);
        intent.putExtra("internal", internal);
        activity.startActivity(intent);
    }

    public static void toCarAddActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, CarAddActivity.class);
        activity.startActivity(intent);
    }

    public static void toCarNameActivity(FragmentActivity activity, String titleName, String logo) {
        Intent intent = new Intent(activity, CarNameActivity.class);
        intent.putExtra("titleName", titleName);
        intent.putExtra("logo", logo);
        activity.startActivity(intent);
    }

    public static void toCarDetailsActivity(FragmentActivity activity, String logo, String title, int tag) {
        Intent intent = new Intent(activity, CarDetailsActivity.class);
        intent.putExtra("logo", logo);
        intent.putExtra("title", title);
        intent.putExtra("tag", tag);
        activity.startActivity(intent);
    }

    public static void toCarDetailsFailActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, CarDetailsFailActivity.class);
        activity.startActivity(intent);
    }

    public static void toCarInformationActivity(FragmentActivity activity, HomeCarModelBean itemData, int jobType, String fee, String equipmentName, String equipmentType, boolean isAdd) {
        Intent intent = new Intent(activity, CarInformationActivity.class);
        intent.putExtra("itemData", itemData);
        intent.putExtra("jobType", jobType);
        intent.putExtra("fee", fee);
        intent.putExtra("equipmentName", equipmentName);
        intent.putExtra("equipmentType", equipmentType);
        intent.putExtra("isAdd", isAdd);
        activity.startActivity(intent);
    }

    public static void toNewsPageActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, NewsPageActivity.class);
        activity.startActivity(intent);
    }

    public static void toReplaceDriverActivity(FragmentActivity activity, OrderListBean itemData) {
        Intent intent = new Intent(activity, ReplaceDriverActivity.class);
        intent.putExtra("itemData", itemData);
        activity.startActivity(intent);
    }

    public static void toOrderDetailsCompleteActivity(FragmentActivity activity, String orderId) {
        Intent intent = new Intent(activity, OrderDetailsCompleteActivity.class);
        intent.putExtra("orderId", orderId);
        activity.startActivity(intent);
    }

    public static void toReceivingAreaActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, ReceivingAreaActivity.class);
        activity.startActivity(intent);
    }

    public static void toReceivingSettingActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, ReceivingSettingActivity.class);
        activity.startActivity(intent);
    }


    public static void toGrabDetailsActivity(FragmentActivity activity, GrabOrderBean itemData) {
        Intent intent = new Intent(activity, GrabDetailsActivity.class);
        intent.putExtra("itemData", itemData);
        activity.startActivity(intent);
    }

    public static void toListeningSettingActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, ListeningSettingActivity.class);
        activity.startActivity(intent);
    }


    public static void toInvitePrizeActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, InvitePrizeActivity.class);
        activity.startActivity(intent);
    }

    public static void toInviteRuleActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, InviteRuleActivity.class);
        activity.startActivity(intent);
    }

    public static void toMyWalletActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, MyWalletActivity.class);
        activity.startActivity(intent);
    }

    public static void toWalletDetailedActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, WalletDetailedActivity.class);
        activity.startActivity(intent);
    }

    public static void toBillDetailsActivity(FragmentActivity activity, String withdrawId) {
        Intent intent = new Intent(activity, BillDetailsActivity.class);
        intent.putExtra("withdrawId", withdrawId);
        activity.startActivity(intent);
    }

    public static void toBankCardActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, BankCardActivity.class);
        activity.startActivity(intent);
    }

    public static void toBankCardEditActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, BankCardEditActivity.class);
        activity.startActivity(intent);
    }

    public static void toMemberCenterActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, MemberCenterActivity.class);
        activity.startActivity(intent);
    }

    public static void toMemberRulesActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, MemberRulesActivity.class);
        activity.startActivity(intent);
    }

    public static void toMemberPurchaseActivity(FragmentActivity activity, CarMemberBean itemData) {
        Intent intent = new Intent(activity, MemberPurchaseActivity.class);
        intent.putExtra("itemData", itemData);
        activity.startActivity(intent);
    }

    public static void toMemberApplyActivity(FragmentActivity activity, String logo) {
        Intent intent = new Intent(activity, MemberApplyActivity.class);
        intent.putExtra("logo", logo);
        activity.startActivity(intent);
    }

    public static void toMyCarSearchActivity(FragmentActivity activity, int tag, int internal) {
        Intent intent = new Intent(activity, MyCarSearchActivity.class);
        intent.putExtra("tag", tag);
        intent.putExtra("internal", internal);
        activity.startActivity(intent);
    }

    public static void toCustomerRegistrationActivity(FragmentActivity activity, int internal) {
        Intent intent = new Intent(activity, CustomerRegistrationActivity.class);
        intent.putExtra("internal", internal);
        activity.startActivity(intent);
    }

    public static void toCustomerRegistrationSearchActivity(FragmentActivity activity, int internal) {
        Intent intent = new Intent(activity, CustomerRegistrationSearchActivity.class);
        intent.putExtra("internal", internal);
        activity.startActivity(intent);
    }

    public static void toCustomerReceivingAreaActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, CustomerReceivingAreaActivity.class);
        activity.startActivity(intent);
    }
}